﻿using System.Xml.Linq;

namespace EasyXaf.DynamicForm.Models;

public class TabPanel : Panel
{
    public TabPanel(Form form, Element parent)
        : base(form, parent)
    {
    }

    public override XElement CreateXElement()
    {
        return Direction switch
        {
            FlowDirection.Horizontal => new XElement("htab"),
            FlowDirection.Vertical => new XElement("vtab"),
            _ => new XElement("tab"),
        };
    }
}
